//
// Created by gj on 16-1-31.
//
#include "com_base_util_jniutils_JniUtils.h"
#include "base/CObject.h"
#include "log/CLog.h"

JNIEXPORT void JNICALL Java_com_base_util_jniutils_JniUtils_NATIVE_1LINK_1TEST(JNIEnv *env, jobject thiz) {
    __android_log_print(ANDROID_LOG_INFO, "test", "test111 %s "" --> ok", __func__);
    // test class Info
    const CClassInformation cClassInformation("abc");
    const CClassInheritInformation cClassInheritInformation("abcd", cClassInformation);
    const CClassInformation **pClassInformation = new const CClassInformation *[2];
    pClassInformation[0] = &cClassInformation;
    pClassInformation[1] = &cClassInheritInformation;
    const CClassMultipleInheritInformation cClassMultipleInheritInformation("abcde", pClassInformation, 2);
    __android_log_print(ANDROID_LOG_INFO, "test", "test class info %s --> ok %s", __func__, cClassInformation.getClassName().c_str());
    __android_log_print(ANDROID_LOG_INFO, "test", "test class inherit info %s --> ok %s", __func__, cClassInheritInformation.getClassName().c_str());
    __android_log_print(ANDROID_LOG_INFO, "test", "test class multiple inherit info %s --> ok %s", __func__, cClassMultipleInheritInformation.getClassName().c_str());
    __android_log_print(ANDROID_LOG_INFO, "test", "test class inherit info %s --> ok %s", __func__, CObject::_class.getClassName().c_str());
}
